package com.jg.dao;

import com.jg.entity.EmployeeProfiles;
import com.jg.util.Page;

public interface EmployeeProfilesDao {
    Page<EmployeeProfiles> findEmployeeProfilesAll(Page<EmployeeProfiles> page);

    EmployeeProfiles findEmployeeProfilesById(Integer id);

    // 分页获取员工列表
    Page<EmployeeProfiles> getEmployeeList(Page<EmployeeProfiles> page,String empName);

    // 获取员工总数
    int getEmployeeCount(String empName);

    // 添加员工
    int addEmployee(EmployeeProfiles employee);

    // 修改员工
    int edit(EmployeeProfiles employee);

    // 删除员工
    int deleteEmployee(int id);

    // 根据id获取员工
    EmployeeProfiles getEmployeeById(int id);
}
